from __future__ import unicode_literals
from django.db import models

# 定义数据库模型的类。
# Create your models here.

class user(models.Model):
    username = models.CharField(max_length=120)
    password = models.CharField(max_length=120)
    usercode = models.CharField(max_length=120)


class Author(models.Model):
    username = models.CharField(max_length=120)
    password = models.CharField(max_length=120)

    class Mate:
        db_table = 'author'
